<div id="content-box">
<div class="content_top"><div class="settings"><h1>Users</h1></div></div>
<br class="clear"/>
<div style="background:#ffffff; width:739px;height:372px;">
<div class="tabs">
			<ul class="tab_items">
				<li class="active"><a href="<?php echo Yii::app()->createUrl('user/index') ?>" >LIST USERS</a></li>
				<li><a href="<?php echo Yii::app()->createUrl('user/create') ?>">CREATE USERS</a></li>
				<!--
<li ><a href="<?php echo Yii::app()->createUrl('cms/settings') ?>">THEMES</a></li>
-->
			</ul>
		</div>
<div class="pagecnt pagecnt1">
<?php 
//$this->widget('zii.widgets.CListView', array('dataProvider'=>$dataProvider,'itemView'=>'_view',)); 
$this->widget('zii.widgets.grid.CGridView', array(
	'dataProvider' => $model->search(),
	//'filter' => $model,
    'ajaxUrl'=> Yii::app()->createUrl('user/index'),
    'ajaxVar'=> true,
    'ajaxUpdate'=>true,
    'summaryText' => '',
    'enablePagination' => true,
    'pager' => array(
                       
                        'cssFile' => false,
                        'header' => false,
                        'firstPageLabel' => '',
                        'prevPageLabel' => '< Prev',
                        'nextPageLabel' => 'Next >',
                        'lastPageLabel' => '',
                    ),
	'columns' => array(
        array(
			'name' => 'first_name',
			'type' => 'raw',
			'value' => 'CHtml::encode($data->first_name)'
		),
        array(
			'name' => 'last_name',
			'type' => 'raw',
			'value' => 'CHtml::encode($data->last_name)'
		),
		array(
			'name' => 'username',
			'type' => 'raw',
			'value' => 'CHtml::encode($data->username)'
		),
		array(
			'name' => 'email',
			'type' => 'raw',
			'value' => 'CHtml::link(CHtml::encode($data->email), "mailto:".CHtml::encode($data->email))',
		),
        array(
			'name' => 'phone_number',
			'type' => 'raw',
			'value' => 'CHtml::encode($data->phone_number)'
		),
        
        array(            // display a column with "view", "update" and "delete" buttons
            'class'=>'CButtonColumn',
            'deleteButtonUrl'=>'Yii::app()->createUrl("user/delete",array("id" => $data->id))',
            'updateButtonUrl'=>'Yii::app()->createUrl("user/create",array("id" => $data->id))',
            'viewButtonUrl'=>'Yii::app()->createUrl("user/view",array("id" => $data->id))',
        ),
	),
));


?>
</div>
</div>
</div>